how to get COLUMN type in SQL